/**
 * 填写表单
 * @param {object} obj 使用该对象数据来填写表单
 * @returns {object} 返回表单的jQuery对象
 */
$.fn.fillForm = function (obj) {
  for (let key in obj) {
    let input = this[0][key];
    if (input) {
      let value = obj[key];
      if (typeof value == 'boolean') value = +value;
      input.value = value;
    }
  }
  return this;
};
